.patient-circle-write {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.patient-circle-write .content {
  flex: 1;
  overflow-y: auto;
}

.patient-circle-write .content .title-section {
  margin-bottom: 20px;
}

.patient-circle-write .content .title-section .title-input {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-circle-write .content .title-section .title-input input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
}

.patient-circle-write .content .title-section .title-input input::placeholder {
  color: #999;
}

.patient-circle-write .content .department-section,
.patient-circle-write .content .disease-section {
  margin-bottom: 20px;
  position: relative;
}

.patient-circle-write .content .department-section .department-selector,
.patient-circle-write .content .department-section .disease-selector,
.patient-circle-write .content .disease-section .department-selector,
.patient-circle-write .content .disease-section .disease-selector {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.patient-circle-write .content .department-section .department-selector .selector-text,
.patient-circle-write .content .department-section .disease-selector .selector-text,
.patient-circle-write .content .disease-section .department-selector .selector-text,
.patient-circle-write .content .disease-section .disease-selector .selector-text {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.patient-circle-write .content .department-section .department-selector .selector-text:empty::before,
.patient-circle-write .content .department-section .disease-selector .selector-text:empty::before,
.patient-circle-write .content .disease-section .department-selector .selector-text:empty::before,
.patient-circle-write .content .disease-section .disease-selector .selector-text:empty::before {
  content: attr(placeholder);
  color: #999;
}

.patient-circle-write .content .department-section .department-selector .arrow,
.patient-circle-write .content .department-section .disease-selector .arrow,
.patient-circle-write .content .disease-section .department-selector .arrow,
.patient-circle-write .content .disease-section .disease-selector .arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.patient-circle-write .content .department-section .dropdown-menu,
.patient-circle-write .content .disease-section .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.patient-circle-write .content .department-section .dropdown-menu .dropdown-item,
.patient-circle-write .content .disease-section .dropdown-menu .dropdown-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.patient-circle-write .content .department-section .dropdown-menu .dropdown-item:hover,
.patient-circle-write .content .disease-section .dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

.patient-circle-write .content .department-section .dropdown-menu .dropdown-item:last-child,
.patient-circle-write .content .disease-section .dropdown-menu .dropdown-item:last-child {
  border-bottom: none;
}

.patient-circle-write .content .detail-section {
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-circle-write .content .detail-section textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  box-sizing: border-box;
}

.patient-circle-write .content .detail-section textarea::placeholder {
  color: #999;
}

.patient-circle-write .content .detail-section .hint {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: #999;
  text-align: right;
}

.patient-circle-write .content .treatment-section {
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-circle-write .content .treatment-section .treatment-header {
  margin-bottom: 15px;
}

.patient-circle-write .content .treatment-section .treatment-header p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.patient-circle-write .content .treatment-section .treatment-content input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.patient-circle-write .content .treatment-section .treatment-content input:focus {
  border-color: #007bff;
}

.patient-circle-write .content .treatment-section .treatment-content input::placeholder {
  color: #999;
}

.patient-circle-write .content .treatment-section .treatment-content .time-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.patient-circle-write .content .treatment-section .treatment-content .time-selector:hover {
  border-color: #007bff;
}

.patient-circle-write .content .treatment-section .treatment-content .time-selector .selector-text {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.patient-circle-write .content .treatment-section .treatment-content .time-selector .selector-text:empty::before {
  content: attr(placeholder);
  color: #999;
}

.patient-circle-write .content .treatment-section .treatment-content .time-selector .arrow {
  color: #999;
  font-size: 12px;
}

.patient-circle-write .content .treatment-section .treatment-content textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.patient-circle-write .content .treatment-section .treatment-content textarea:focus {
  border-color: #007bff;
}

.patient-circle-write .content .treatment-section .treatment-content textarea::placeholder {
  color: #999;
}

.patient-circle-write .content .image-section {
  margin-bottom: 20px;
}

.patient-circle-write .content .image-section .hint {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #666;
}

.patient-circle-write .content .image-section .image-upload {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-circle-write .content .image-section .image-upload .image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patient-circle-write .content .image-section .image-upload .image-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.patient-circle-write .content .image-section .image-upload .image-list .upload-btn {
  width: 80px;
  height: 80px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.patient-circle-write .content .image-section .image-upload .image-list .upload-btn:hover {
  border-color: #007bff;
}

.patient-circle-write .content .image-section .image-upload .image-list .upload-btn span {
  font-size: 24px;
  color: #999;
}

.patient-circle-write .content .reward-section {
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-circle-write .content .reward-section .reward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.patient-circle-write .content .reward-section .reward-header p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.patient-circle-write .content .reward-section .reward-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #007bff;
}

.patient-circle-write .content .reward-section .reward-content p {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #666;
}

.patient-circle-write .content .reward-section .reward-content .amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .amount-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .amount-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .amount-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .custom-input {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #333;
  font-size: 14px;
  outline: none;
  min-width: 120px;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .custom-input:focus {
  border-color: #007bff;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .custom-input.active {
  border-color: #007bff;
  color: #007bff;
}

.patient-circle-write .content .reward-section .reward-content .amount-options .custom-input::placeholder {
  color: #999;
}

.patient-circle-write .content .reward-section .reward-content .balance-hint {
  margin: 0;
  font-size: 12px;
  color: #999;
}

.patient-circle-write .content .reward-section .reward-content .balance-hint span {
  color: #007bff;
  cursor: pointer;
}

.patient-circle-write .content .reward-section .reward-content .balance-hint span:hover {
  text-decoration: underline;
}

.patient-circle-write .content .submit-btn {
  width: 100%;
  padding: 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.patient-circle-write .content .submit-btn:hover:not(:disabled) {
  background: #0056b3;
}

.patient-circle-write .content .submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.patient-circle-write .content .date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.patient-circle-write .content .date-picker-overlay .date-picker {
  background: white;
  border-radius: 8px;
  padding: 20px;
  min-width: 300px;
}

.patient-circle-write .content .date-picker-overlay .date-picker h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  text-align: center;
}

.patient-circle-write .content .date-picker-overlay .date-picker input[type="date"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
  box-sizing: border-box;
}

.patient-circle-write .content .date-picker-overlay .date-picker input[type="date"]:focus {
  border-color: #007bff;
}

.patient-circle-write .content .date-picker-overlay .date-picker .picker-actions {
  display: flex;
  gap: 10px;
}

.patient-circle-write .content .date-picker-overlay .date-picker .picker-actions button {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.patient-circle-write .content .date-picker-overlay .date-picker .picker-actions button:hover {
  border-color: #007bff;
  color: #007bff;
}

.patient-circle-write .content .date-picker-overlay .date-picker .picker-actions button:last-child {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.patient-circle-write .content .date-picker-overlay .date-picker .picker-actions button:last-child:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .patient-circle-write .image-section .image-upload .image-list img,
  .patient-circle-write .image-section .image-upload .image-list .upload-btn {
    width: 70px;
    height: 70px;
  }
  .patient-circle-write .reward-section .reward-content .amount-options .amount-btn,
  .patient-circle-write .reward-section .reward-content .amount-options .custom-input {
    padding: 6px 12px;
    font-size: 12px;
  }
}
